<script setup>
import { RouterLink, RouterView, useRoute } from 'vue-router'
import Header from '@/pages/componets/Header.vue'
import Player from './pages/componets/Player.vue';

const route = useRoute();
const hideHeaderAndPlayer = ['/search', '/playerdetail'];
</script>

<template>
  <Header v-if="!hideHeaderAndPlayer.includes(route.path)" />
  <RouterView />
  <!-- 占位div -->
  <div style="height: 50px;"></div>
  <Player v-if="!hideHeaderAndPlayer.includes(route.path)"/>
</template>

<style scoped>

</style>
